<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 400px;
            height: 400px;
            /* background-color: pink; */
            /* background-color: #ccc; */
            /* 红绿蓝三原色，a是透明度0-1 */
            background-color: rgb(0, 0, 0,0.5);
        }
    </style>
</head>
<body>
    <div>div</div>
    
</body>
</html>